<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/inner.js"></script>
</head>

<body>
    <div>这是一个内嵌页面。</div>
    <div>
        <label for="result">结果：</label>
        <input type="text" id="result" />
    </div>
    <script>
        document.getElementById("result").value = greeting();
        function greeting() {
            return "hi";
        }
    </script>
</body>

</html>